package com.annotation.mvc.controller;

import com.annotatin.mvc.interfaceAnnotation.Control;
import com.annotatin.mvc.interfaceAnnotation.RequestMapping;
import com.annotation.mvc.entity.UserBean;



@Control
@RequestMapping("/userAction")
public class UserController {
	public UserController() {

	}
	@RequestMapping("/user")
	public String excute(UserBean user) {
		if (user.getName().equals("mj")) {
			return "/success.jsp";
		} else {
			return "/error.jsp";
		}
	}
}